# meta-name: 敌人行动
# meta-description: 敌人采取行动时的行为逻辑
extends Action

func performAction() -> void:
  if !enemy or !target: return
  var tween := create_tween().set_trans(Tween.TRANS_QUINT)
  var start := enemy.global_position
  var end := target.global_position + Vector2.RIGHT * 32

  Events.actionCompleted.emit(enemy)